#include "aliyun.h"

WiFiClient espclient;
PubSubClient client(espclient);

void connect_to_aliyun(void)
{
    client.setServer(aliyun_server,aliyun_port);
    client.connect(mqtt_client_id,mqtt_username,mqtt_password);
    if(client.connected())
    {
        Serial.println("client connects Aliyun success first");
        Serial.printf("ESP32 HEAP:%d\r\n",esp_get_free_heap_size());
    }
    else
    {
        
    }
}